import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'UserLogin',
      component: () => import('../views/UserLogin.vue'),
    },
    
    {
      path: '/Main',
      name: 'Main',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      //更改路径
      component: () => import('../views/Main.vue'),
      children: [
        {
          path: '/UpdVendorItems',
          name: 'UpdVendorItems',
          component: () => import('../views/Training2/Vendor/UpdVendorItems.vue'),
        },
        {
          path: '/UpdVendor',
          name: 'QueryVUpdVendorendor',
          component: () => import('../views/wang/Vendor/UpdVendor.vue'),
        },
        {
          path: '/QueryVendor',
          name: 'QueryVendor',
          component: () => import('../views/wang/Vendor/QueryVendor.vue'),
        },
        {
          path: '/UpdContact',
          name: 'UpdContact',
          component: () => import('../views/wang/Contact/UpdContact.vue'),
        },
        {
          path: '/QueryContect',
          name: 'QueryContect',
          component: () => import('../views/wang/Contact/QueryContect.vue'),
        },
        {
          path: '/CreateContact',
          name: 'CreateContact',
          component: () => import('../views/wang/Contact/CreateContact.vue'),
        },
        {
          path: '/UpdSales',
          name: 'UpdSales',
          component: () => import('../views/wang/Sales/UpdSales.vue'),
        },
        {
          path: '/QuerySales',
          name: 'QuerySales',
          component: () => import('../views/wang/Sales/QuerySales.vue'),
        },
        {
          path: '/CreateSales',
          name: 'CreateSales',
          component: () => import('../views/wang/Sales/CreateSales.vue'),
        },
        {
          path: '/UpdFiltrate',
          name: 'UpdFiltrate',
          component: () => import('../views/wang/Filtrate/UpdFiltrate.vue'),
        },
        {
          path: '/AddVendor',
          name: 'AddVendor',
          component: () => import('../views/Training2/Vendor/AddVendor.vue'),
        },
        {
          path: '/VendorItems',
          name: 'VendorItems',
          component: () => import('../views/Training2/Vendor/VendorItems.vue'),
        },
        {
          path: '/GetVendor',
          name: 'GetVendor',
          component: () => import('../views/Training2/Vendor/GetVendor.vue'),
          props(route) {
            return { vendorId: route.query.vendorId }
          },
        },
        {
          path: '/GetDOM',
          name: 'GetDOM',
          component: () => import('../views/Training2/DOM/GetDOM.vue'),
        },
        {
          path: '/AddDOM',
          name: 'AddDOM',
          component: () => import('../views/Training2/DOM/AddDOM.vue'),
        },
        {
          path: '/QueryFiltrate',
          name: 'QueryFiltrate',
          component: () => import('../views/wang/Filtrate/QueryFiltrate.vue'),
        },
        {
          path: '/CreateFiltrate',
          name: 'CreateFiltrate',
          component: () => import('../views/wang/Filtrate/CreateFiltrate.vue'),
        },
        {
          path: '/UpdPower',
          name: 'UpdPower',
          component: () => import('../views/wang/Power/UpdPower.vue'),
        },
        {
          path: '/AddFeedings',
          name: 'AddFeedings',
          component: () => import('../views/Training2/AddFeeding.vue'),
        },
        {
          path: '/GetFeedings',
          name: 'GetFeedings',
          component: () => import('../views/Training2/GetFeeding.vue'),
        },
        {
          path: '/GetTicket',
          name: 'GetTicket',
          component: () => import('../views/Training2/GetTicket.vue'),
        },
        {
          path: '/QueryPower',
          name: 'QueryPower',
          component: () => import('../views/wang/Power/QueryPower.vue'),
        },
        {
          path: '/CreatePower',
          name: 'CreatePower',
          component: () => import('../views/wang/Power/CreatePower.vue'),
        },
        {
          path: '/UpdReport',
          name: 'UpdReport',
          component: () => import('../views/wang/Report/UpdReport.vue'),
        },
        {
          path: '/QueryReport',
          name: 'QueryReport',
          component: () => import('../views/wang/Report/QueryReport.vue'),
        },
        {
          path: '/CreateReport',
          name: 'CreateReport',
          component: () => import('../views/wang/Report/CreateReport.vue'),
        },
        {
          path: '/AddTickets',
          name: 'AddTickets',
          component: () => import('../views/Training2/AddTickets.vue'),
        },
        {
          path: '/GetCleaning',
          name: 'GetCleaning',
          component: () => import('../views/Training2/GetCleaning.vue'),
        },
        {
          path: '/AddCleaning',
          name: 'AddCleaning',
          component: () => import('../views/Training2/AddCleaning.vue'),
        },
        {
          path: '/GetMaterialPreparation',
          name: 'GetMaterialPreparation',
          component: () => import('../views/Training2/GetMaterialPreparation.vue'),
        },
        {
          path: '/UpdMonitor',
          name: 'UpdMonitor',
          component: () => import('../views/wang/Monitor/UpdMonitor.vue'),
        },
        {
          path: '/QueryMonitor',
          name: 'QueryMonitor',
          component: () => import('../views/wang/Monitor/QueryMonitor.vue'),
        },
        {
          path: '/CreateMonitor',
          name: 'CreateMonitor',
          component: () => import('../views/wang/Monitor/CreateMonitor.vue'),
        },
        {
          path: '/Connect',
          name: 'Connect',
          component: () => import('../views/wang/Team/Connect.vue'),
        },
        {
          path: '/UpdTeam',
          name: 'UpdTeam',
          component: () => import('../views/wang/Team/UpdTeam.vue'),
        },
        {
          path: '/QueryTeam',
          name: 'QueryTeam',
          component: () => import('../views/wang/Team/QueryTeam.vue'),
        },
        {
          path: '/CreateTeam',
          name: 'CreateTeam',
          component: () => import('../views/wang/Team/CreateTeam.vue'),
        },
        {
          path: '/QueryExtraciton',
          name: 'QueryExtraciton',
          component: () => import('../views/wang/Extraciton/QueryExtraciton.vue'),
        },
        {
          path: '/QuerySalesReturns',
          name: 'QuerySalesReturns',
          component: () => import('../views/wang/Returns/QuerySalesReturns.vue'),
        },
        {
          path: '/CreateEntraction',
          name: 'CreateEntraction',
          component: () => import('../views/wang/Extraciton/CreateEntraction.vue'),
        },
        {
          path: '/CreateSalesReturns',
          name: 'CreateSalesReturns',
          component: () => import('../views/wang/Returns/CreateSalesReturns.vue'),
        },
        {
          path: '/CreateSale',
          name: 'CreateSale',
          component: () => import('../views/wang/Sale/CreateSale.vue'),
        },
        {
          path: '/addMaterialPreparation',
          name: 'addMaterialPreparation',
          component: () => import('../views/Training2/AddMaterialPreparation.vue')
        },
        {
          path: '/QuerySale',
          name: 'QuerySale',
          component: () => import('../views/wang/Sale/QuerySale.vue'),
        },
        {
          path: '/UpdProducts',
          name: 'UpdProducts',
          component: () => import('../views/wang/Products/UpdProducts.vue'),
        },
        {
          path: '/CreateProducts',
          name: 'CreateProducts',
          component: () => import('../views/wang/Products/CreateProducts.vue'),
        },
        {
          path: '/QueryProducts',
          name: 'QueryProducts',
          component: () => import('../views/wang/Products/QueryProducts.vue'),
        },
        {
          path: '/UpdClient',
          name: 'UpdClient',
          component: () => import('../views/wang/Client/UpdClient.vue'),
        },
        {
          path: '/QueryClient',
          name: 'QueryClient',
          component: () => import('../views/wang/Client/QueryClient.vue'),
        },
        {
          path: '/CreateClient',
          name: 'CreateClient',
          component: () => import('../views/wang/Client/CreateClient.vue'),
        },
        {
          path: '/UpdPurchaseDetails',
          name: 'UpdPurchaseDetails',
          component: () => import('../views/wang/Purchase/UpdPurchaseDetails.vue'),
        },
        {
          path: '/CreateProcurement',
          name: 'CreateProcurement',
          component: () => import('../views/wang/Procurement/CreateProcurement.vue'),
        },
        {
          path: '/QueryPurchase',
          name: 'QueryPurchase',
          component: () => import('../views/wang/Purchase/QueryPurchase.vue'),
        },
        {
          path: '/CreateVendor',
          name: 'CreateVendor',
          component: () => import('../views/wang/Vendor/CreateVendor.vue'),
        },
        {
          path: '/QueryProcurement',
          name: 'QueryProcurement',
          component: () => import('../views/wang/Procurement/QueryProcurement.vue'),
        },
        {
          path: '/CreateOrders',
          name: 'CreateOrders',
          component: () => import('../views/wang/Orders/CreateOrders.vue'),
        },
        {
          path: '/QueryOrders',
          name: 'QueryOrders',
          component: () => import('../views/wang/Orders/QueryOrders.vue'),
          props: (route) => ({
            documentsId: route.query.documentsId,
          })
        },
        {
          path: '/UpdateOrder',
          name: 'UpdateOrder',
          component: () => import('../views/wang/Orders/UpdateOrder.vue'),
        },
        {
          path: '/AddMain',
          name: 'AddMain',
          component: () => import('../views/AddMain.vue'),
        },
        {
          path: '/GetMain',
          name: 'GetMain',
          component: () => import('../views/GetMain.vue'),
        },
        {
          path: '/AddRole',
          name: 'AddRole',
          component: () => import('../views/AddRole.vue'),
        },
        {
          path: '/GetRole',
          name: 'GetRole',
          component: () => import('../views/GetRole.vue'),
        },
        {
          path: '/GetMenu',
          name: 'GetMenu',
          component: () => import('../views/GetMenu.vue'),
        },
        {
          path: '/AddMenu',
          name: 'AddMenu',
          component: () => import('../views/AddMenu.vue'),
        },
        {
          path: '/AddRoleMenu',
          name: 'AddRoleMenu',
          component: () => import('../views/AddRoleMenu.vue'),
        },
        {
          path: '/AddLeave',
          name: 'AddLeave',
          component: () => import('../views/AddLeave.vue'),
        },
        {
          path: '/GetRecode',
          name: 'GetRecode',
          component: () => import('../views/GetRecode.vue'),
        },
        {
          path: '/Setting',
          name: 'Setting',
          component: () => import('../views/Setting.vue'),
        },

        //#region 物料管理路由
        {
          path: '/AddMa',
          name: 'AddMa',
          component: () => import('../views/Materials/AddMa.vue'),
        },
        {
          path: '/GetMaterials',
          name: 'GetMaterials',
          component: () => import('../views/Materials/GetMaterials.vue'),
        },
        {
          path: '/FTMaterials',
          name: 'FTMaterials',
          component: () => import('../views/Materials/FTMaterials.vue'),
        },

        // 物料领料管理路由
        {
          path: '/AddMaterialsPicking',
          name: 'AddMaterialsPicking',
          component: () => import('../views/Materials/Picking/AddMaterialsPicking.vue'),

        },
        {
          path: '/ShowMaterialsPicking',
          name: 'ShowMaterialsPicking',
          component: () => import('../views/Materials/Picking/ShowMaterialsPicking.vue'),
        },
        {
          path: '/FTPicking',
          name: 'FTPicking',
          component: () => import('../views/Materials/Picking/FTPicking.vue'),
        },
        //领料剩余表
        {
          path: '/GETPicking',
          name: 'GETPicking',
          component: () => import('../views/Materials/Picking/GETPicking.vue'),
        },
        //生产补料
        {
          path: '/AddFeeding',
          name: 'AddFeeding',
          component: () => import('../views/Materials/Feeding/AddFeeding.vue'),
        },
        {
          path: '/CreaFeeding',
          name: 'CreaFeeding',
          component: () => import('../views/Materials/Feeding/CreaFeeding.vue'),
        },
        {
          path: '/ShowFeeding',
          name: 'ShowFeeding',
          component: () => import('../views/Materials/Feeding/ShowFeeding.vue'),
        },
        {
          path: '/UpdateFeeding',
          name: 'UpdateFeeding',
          component: () => import('../views/Materials/Feeding/UpdateFeeding.vue'),
        },
        //生产退料
        {
          path: '/AddStripping',
          name: 'AddStripping',
          component: () => import('../views/Materials/Stripping/AddStripping.vue'),
        },
        {
          path: '/ShowStripping',
          name: 'ShowStripping',
          component: () => import('../views/Materials/Stripping/ShowStripping.vue'),
        },
        {
          path: '/FTZStripping',
          name: 'FTZStripping',
          component: () => import('../views/Materials/Stripping/FTZStripping.vue'),
        },
        //生产废料
        {
          path: '/Addscraps',
          name: 'Addscraps',
          component: () => import('../views/Materials/Scraps/Addscraps.vue'),
        },
        {
          path: '/UpdateDOM',
          name: 'UpdateDOM',
          component: () => import('../views/Training2/DOM/UpdateDOM.vue'),
        },
        {
          path: '/Showscraps',
          name: 'Showscraps',
          component: () => import('../views/Materials/Scraps/Showscraps.vue'),
        },
        {
          path: '/Updatescraps',
          name: 'Updatescraps',
          component: () => import('../views/Materials/Scraps/Updatescraps.vue'),
        },
        //#endregion
        //生产计划
        {
          path: '/AddProductionPlanning',
          name: 'AddProductionPlanning',
          component: () => import('../views/ProductionPlanning/AddProductionPlanningView.vue'),
        },
        {
          path: '/GetProductionPlanningList',
          name: 'GetProductionPlanningList',
          component: () => import('../views/ProductionPlanning/GetProductionPlanningListView.vue'),
        },
        {
          path: '/GetBYIdProductionPlanning',
          name: 'GetBYIdProductionPlanning',
          component: () => import('../views/ProductionPlanning/GetBYIdProductionPlanningView.vue'),
        },
        {
          path: '/GetProductionPlanningDetailList',
          name: 'GetProductionPlanningDetailList',
          component: () => import('../views/ProductionPlanning/GetProductionPlanningDetailListView.vue'),
        },
        //#endregion

        {
          path: '/MianView',
          name: 'MianView',
          component: () => import('../views/MianView.vue'),
        },
        //#region 报表
        {//添加订单派工
          path: '/AddDispatchProduct',
          name: 'AddDispatchProduct',
          component: () => import('../views/Report/AddDispatchProductView.vue'),
        },
        {//获取订单派工列表
          path: '/GetDispatchProduct',
          name: 'GetDispatchProduct',
          component: () => import('../views/Report/GetDispatchProductView.vue'),
        },
        {//添加订单委外
          path: '/AddOutsourcing',
          name: 'AddOutsourcing',
          component: () => import('../views/Report/AddOutsourcingView.vue'),
        },
        {//订单委外列表
          path: '/GetOutsourcing',
          name: 'GetOutsourcing',
          component: () => import('../views/Report/GetOutsourcingView.vue'),
        },

        {//获取订单派工详细
          path: '/GetBYIdDispatchProduct',
          name: 'GetBYIdDispatchProduct',
          component: () => import('../views/Report/GetBYIdDispatchProductView.vue'),
        },
        {//获取订单委外列表
          path: '/GetOutsourcing',
          name: 'GetOutsourcing',
          component: () => import('../views/Report/GetOutsourcingView.vue'),
        },
        {
          path: '/GetBYIdOutsourcing',
          name: 'GetBYIdOutsourcing',
          component: () => import('../views/Report/GetBYIdOutsourcingView.vue'),
        },
        //endregion
        {//添加生产工序页面
          path: '/AddProcess',
          name: 'AddProcess',
          component: () => import('../views/Process/AddProcessView.vue'),
        },
        {//获取生产工序页面
          path: '/GetProcess',
          name: 'GetProcess',
          component: () => import('../views/Process/GetProcessView.vue'),
        },
        {//详情生产工序页面
          path: '/GetBYIdprocess',
          name: 'GetBYIdprocess',
          component: () => import('../views/Process/GetBYIdprocessView.vue'),
        },
        //endregion
        //#region 入库管理路由
        {
          path: '/AddStockInApplication',
          name: 'AddStockInApplication',
          component: () => import('../views/StockInApplication/AddStockInApplication.vue'),
        },
        {
          path: '/GetStockInApplication',
          name: 'GetStockInApplication',
          component: () => import('../views/StockInApplication/GetStockInApplication.vue'),
        },
        {
          path: '/UPDATStockInApplication',
          name: 'UPDATStockInApplication',
          component: () => import('../views/StockInApplication/UPDATStockInApplication.vue'),
        },
        //出库管理路由
        {
          path: '/AddOutbound',
          name: 'AddOutbound',
          component: () => import('../views/StockInApplication/Outbound/AddOutbound.vue'),
        },
        {
          path: '/GetOutbound',
          name: 'GetOutbound',
          component: () => import('../views/StockInApplication/Outbound/GetOutbound.vue'),
        },
        {
          path: '/FTOutbound',
          name: 'FTOutbound',
          component: () => import('../views/StockInApplication/Outbound/FTOutbound.vue'),
        },
        //#endregion
        //#region 仓库管理路由
        {
          path: '/GetWareHouse',
          name: 'GetWareHouse',
          component: () => import('../views/WarehouseManagement/GetWareHouseView.vue'),
        },
        //#endregion
        //#region 货物管理路由
        {
          path: '/AddGoods',
          name: 'AddGoods',
          component: () => import('../views/Goods/AddGoods.vue'),
        },
        {
          path: '/ShowGoods',
          name: 'ShowGoods',
          component: () => import('../views/Goods/ShowGoods.vue'),
        },
        {
          path: '/UpdateGOODS',
          name: 'UpdateGOODS',
          component: () => import('../views/Goods/UpdateGOODS.vue'),
        },

        //#endregion
        //#region 调拨路由
        {
          path: '/AddAllocate',
          name: 'AddAllocate',
          component: () => import('../views/Allocate/AddAllocate.vue'),
        },
        {
          path: '/ShoAllocate',
          name: 'ShoAllocate',
          component: () => import('../views/Allocate/ShoAllocate.vue'),
        },
        {
          path: '/UpdateAllocate',
          name: 'UpdateAllocate',
          component: () => import('../views/Allocate/UpdateAllocate.vue'),
        },
        {
          path: '/AddPackagingPlanView',
          name: 'AddPackagingPlanView',
          component: () => import('../views/PackagingPlan/AddPackagingPlanView.vue'),
        },
        {
          path: '/GetPackagingPlanlistView',
          name: 'GetPackagingPlanlistView',
          component: () => import('../views/PackagingPlan/GetPackagingPlanlistView.vue'),
        },
        {
          path: '/GetBYIdPackagingPlanView',
          name: 'GetBYIdPackagingPlanView',
          component: () => import('../views/PackagingPlan/GetBYIdPackagingPlanView.vue'),
        },
        {
          path: '/GetBYIddetailView',
          name: 'GetBYIddetailView',
          component: () => import('../views/PackagingPlan/GetBYIddetailView.vue'),
        },
        //#endregion
        //#region  完工入库表路由
        {
          path: '/AddCompletedStorage',
          name: 'AddCompletedStorage',
          component: () => import('../views/CompletedStorage/AddCompletedStorage.vue'),
        },
        {
          path: '/GETCompletedStorage',
          name: 'GETCompletedStorage',
          component: () => import('../views/CompletedStorage/GETCompletedStorage.vue'),
        },
        {
          path: '/UpdateCompletedStorage',
          name: 'UpdateCompletedStorage',
          component: () => import('../views/CompletedStorage/UpdateCompletedStorage.vue'),
        },
        //#endregion
        //#region  包装成品完工表路由
        {
          path: '/AddCompletedfinished',
          name: 'AddCompletedfinished',
          component: () => import('../views/Completedfinished/AddCompletedfinished.vue'),
        },
        {
          path: '/GetCompletedfinished',
          name: 'GetCompletedfinished',
          component: () => import('../views/Completedfinished/GetCompletedfinished.vue'),
        },
        {
          path: '/UpdateCompletedfinished',
          name: 'UpdateCompletedfinished',
          component: () => import('../views/Completedfinished/UpdateCompletedfinished.vue'),
        },
        //#endregion
        //#region  包装检验表路由
        {
          path: '/AddPackagingQuality',
          name: 'AddPackagingQuality',
          component: () => import('../views/PackagingQuality/AddPackagingQuality.vue'),
        },
        {
          path: '/GetPackagingQuality',
          name: 'GetPackagingQuality',
          component: () => import('../views/PackagingQuality/GetPackagingQuality.vue'),
        },
        {
          path: '/UpdatePackagingQuality',
          name: 'UpdatePackagingQuality',
          component: () => import('../views/PackagingQuality/UpdatePackagingQuality.vue'),
        },
        //#endregion
        //#region  过滤表路由
        {
          path: '/AddProcessMonitoring',
          name: 'AddProcessMonitoring',
          component: () => import('../views/Training2/ProcessMonitoring/AddProcessMonitoring.vue'),
        },
        {
          path: '/GetProcessMonitoring',
          name: 'GetProcessMonitoring',
          component: () => import('../views/Training2/ProcessMonitoring/GetProcessMonitoring.vue'),
        },
        {
          path: '/UpdateProcessMonitoring',
          name: 'UpdateProcessMonitoring',
          component: () => import('../views/Training2/ProcessMonitoring/UpdateProcessMonitoring.vue'),
        },
        {
          path: '/Addwt',
          name: 'Addwt',
          component: () => import('../views/Training2/Addwt.vue'),
        },
        //工序列表
        {
          path: '/AddProcess',
          name: 'AddProcess',
          component: () => import('../views/Training2/Process/AddProcess.vue'),
        },
        {
          path: '/GetProcess',
          name: 'GetProcess',
          component: () => import('../views/Training2/Process/GetProcess.vue'),
        },
        {
          path: '/UpdateProcess',
          name: 'UpdateProcess',
          component: () => import('../views/Training2/Process/UpdateProcess.vue'),
        },
        {
          path: '/GeetProcessTypeView',
          name: 'GeetProcessTypeView',
          component: () => import('../views/Training2/Process/GeetProcessTypeView.vue'),
        },
        {
          path: '/GetProcedureView',
          name: 'GetProcedureView',
          component: () => import('../views/Training2/Process/GetProcedureView.vue'),
        },
        {
          path: '/GetCraftsmanshipView',
          name: 'GetCraftsmanshipView',
          component: () => import('../views/Training2/Process/GetCraftsmanshipView.vue'),
        },
        {
          path: '/AddCraftsmanshipView',
          name: 'AddCraftsmanshipView',
          component: () => import('../views/Training2/Process/AddCraftsmanshipView.vue'),
        },
        {
          path: '/GetBYIdCraftsmanshipView',
          name: 'GetBYIdCraftsmanshipView',
          component: () => import('../views/Training2/Process/GetBYIdCraftsmanshipView.vue'),
        },
        
        //专检
        {
          path: '/AddProductionTask',
          name: 'AddProductionTask',
          component: () => import('../views/Training2/ProductionTask/AddProductionTask.vue'),
        },
        {
          path: '/GetProductionTask',
          name: 'GetProductionTask',
          component: () => import('../views/Training2/ProductionTask/GetProductionTask.vue'),
        },
        {
          path: '/UpdateProductionTask',
          name: 'UpdateProductionTask',
          component: () => import('../views/Training2/ProductionTask/UpdateProductionTask.vue'),
        },
        //异常处理
        {
          path: '/GetAbnormal',
          name: 'GetAbnormal',
          component: () => import('../views/Training2/Abnormal/GetAbnormal.vue'),
        },
        {
          path: '/AddAbnormal',
          name: 'AddAbnormal',
          component: () => import('../views/Training2/Abnormal/AddAbnormal.vue'),
        },
        {
          path: '/UpdateAbnormal',
          name: 'UpdateAbnormal',
          component: () => import('../views/Training2/Abnormal/UpdateAbnormal.vue'),
        },
        {
          path: '/AddArrival',
          name: 'AddArrival',
          component: () => import('../views/Training2/Arrival/AddArrival.vue'),
        },
        {
          path: '/GetArrival',
          name: 'GetArrival',
          component: () => import('../views/Training2/Arrival/GetArrival.vue'),
        },
        {
          path: '/UpdateArrival',
          name: 'UpdateArrival',
          component: () => import('../views/Training2/Arrival/UpdateArrival.vue'),
        },



        {
          path: '/AddQualityLnspection',
          name: 'AddQualityLnspection',
          component: () => import('../views/Training2/QualityLnspection/AddQualityLnspection.vue'),
        },
        {
          path: '/GetQualityLnspection',
          name: 'GetQualityLnspection',
          component: () => import('../views/Training2/QualityLnspection/GetQualityLnspection.vue'),
        },
        {
          path: '/UpdateQualityLnspection',
          name: 'UpdateQualityLnspection',
          component: () => import('../views/Training2/QualityLnspection/UpdateQualityLnspection.vue'),
        },
        {
          path: '/FTQualityLnspection',
          name: 'FTQualityLnspection',
          component: () => import('../views/Training2/QualityLnspection/FTQualityLnspection.vue'),
        },
        {
          path: '/GetPurchaseInfo',
          name: 'GetPurchaseInfo',
          component: () => import('../views/Training2/Arrival/GetPurchaseInfo.vue'),
        },
        //质检报工
        {
          path: '/AddQualityReportWork',
          name: 'AddQualityReportWork',
          component: () => import('../views/Training2/QualityReportWork/AddQualityReportWork.vue'),
        },
        {
          path: '/GetQualityReportWork',
          name: 'GetQualityReportWork',
          component: () => import('../views/Training2/QualityReportWork/GetQualityReportWork.vue'),
        },
        {
          path: '/UpdateQualityReportWork',
          name: 'UpdateQualityReportWork',
          component: () => import('../views/Training2/QualityReportWork/UpdateQualityReportWork.vue'),
        },
        {
          path: '/SHOWQualityReportWork',
          name: 'SHOWQualityReportWork',
          component: () => import('../views/Training2/QualityReportWork/SHOWQualityReportWork.vue'),
        },
        {
          path: '/FTQualityReportWork',
          name: 'FTQualityReportWork',
          component: () => import('../views/Training2/QualityReportWork/FTQualityReportWork.vue'),
        },
        //#endregion
      ]
    },
  ],
})

//路由守卫
// router.beforeEach((to,from,next)=>{

// 	if(to.path.toLocaleLowerCase()=="/"){
// 		next();
// 	}
// 	var token = sessionStorage.getItem("token")
// 	if(!token){
// 		next("/");
// 	}
// 	next();
// })

export default router
